package com.chj.comp.service.demo2.controller;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.chj.comp.common.core.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import io.swagger.annotations.*;
import com.chj.comp.service.demo2.entity.TbRenshetingExam;
import com.chj.comp.service.demo2.service.ITbRenshetingExamService;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author cuihui
 * @since 2022-06-25
 */
@RestController
@RequestMapping("/tbRenshetingExam")
@Api(tags = "多数据源调用测试")
public class TbRenshetingExamController {

    @Autowired
    private ITbRenshetingExamService tbRenshetingExamService;

    /**
    * 查询详情（多数据源调用测试）
    *
    * @return R<TbRenshetingExam>
    */
    @GetMapping("/getTbRenshetingExamDetail")
    @ApiOperation(value = "查询spider_data.tb_rensheting_exam详情")
    public Result getTbRenshetingExamDetail() {
        LambdaQueryWrapper<TbRenshetingExam> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(TbRenshetingExam::getNoticeTime, "2022-05-13");
        return Result.ok(tbRenshetingExamService.list(lambdaQueryWrapper));
    }

}
